<template>
  <a-input v-model:value="input" placeholder="Basic usage" @change="onChange" @pressEnter="onChange">
    <template #prefix>
      <user-outlined />
    </template>
  </a-input>
</template>

<script setup>
import { ref } from 'vue'

const input = ref('')

const onChange = () => {
  //触发搜索事件
};
</script>
